package com.zero.book.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;

/**
 * @author Zero
 * @version 1.0.0
 * @date 2025/01/19
 * @description 书籍类
 */
@SuppressWarnings("all")
@AllArgsConstructor
@NoArgsConstructor
@Data
@ToString
public class Book implements Serializable {

    //序列化的版本id
    private static final long serialVersionUID = 1L;

    private String title;
    private String author;
    private double price;

    //建造者模式
    public static BookBuilder builder(){
        return new BookBuilder();
    }
}